package gv.trans;

import gv.trans.util.Utils;

import org.anddev.andengine.entity.primitive.Rectangle;
import org.anddev.andengine.entity.scene.Scene;
import org.anddev.andengine.entity.sprite.TiledSprite;

public class MyScene extends Scene{

	public MyScene(int pLayerCount) {
		super(pLayerCount);
		DropDown dd = new DropDown(Utils.toScreenX(10), Utils.toScreenY(10), Utils.toScreenX(40), Utils.toScreenY(50));
		Rectangle r1 = new Rectangle(0,0,Utils.toScreenX(80),Utils.toScreenY(20));
		Rectangle r2 = new Rectangle(0,0,Utils.toScreenX(80),Utils.toScreenY(20));
		r2.setColor(100, 0, 0);
		Rectangle r3 = new Rectangle(0,0,Utils.toScreenX(80),Utils.toScreenY(20));
		r3.setColor(0, 100, 0);
		Rectangle r4 = new Rectangle(0,0,Utils.toScreenX(80),Utils.toScreenY(20));
		r1.setColor(0, 0, 100);
		r4.setColor(100,100,0);
		TiledSprite sprite = new TiledSprite(0, 0, Utils.toScreenX(30), Utils.toScreenY(60), Utils.getTiledRegion("cry.png", 4));
		
		dd.attachChild(r1);
		dd.attachChild(r2);
		dd.attachChild(sprite);
		dd.attachChild(r3);
		dd.attachChild(r4);
		
		this.getLastChild().attachChild(dd);
		this.setTouchAreaBindingEnabled(true);
		this.registerTouchArea(dd);

	}

}
